package com.weishaoying.mongo.model;

import lombok.Data;
import org.springframework.boot.autoconfigure.mongo.MongoProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * @author WeiShaoying
 * @date 2018/5/16
 */
@ConfigurationProperties(prefix = "mongodb")
@Data
public class MultiMongoConfigBean {

    private MongoProperties primary = new MongoProperties();

    private MongoProperties secondary = new MongoProperties();

}
